<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../struts_taglib.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>  
  <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  <title>财务管理/二级科目</title>
  <%@include file="../link_script.jsp" %>
  <script src="js/pmis/pmis-subject.js" language="javascript" type="text/javascript"></script>
</head>
<body>
<html:form styleId="list" action="/subject.do">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <%@ include file="subjectson_button_list.jsp" %> 
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="images/tab_12.gif">&nbsp;</td>
        <td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#b5d6e6">
          <tr>
            <td width="20%" class="STYLE11">&nbsp;&#9679;&nbsp;<b>上级科目名称/代码</b>&nbsp;&nbsp;${subjectName }/${subjectID }</td>
          </tr> 
        </table></td>
        <td width="8" background="images/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="images/tab_12.gif">&nbsp;</td>
        <td width="178" valign="top"><table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0px" bordercolor="#b5d6e6">
          <tr><td><%@ include file="subject_tree.jsp"%></td></tr></table></td>
        <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#b5d6e6" onMouseOver="javascript:changeto();" onmouseout="javascript:changeback();">
          <tr>
            <td width="4%" class="tdClass">选择</td>
            <td width="4%" class="tdClass">序号</td>
            <td width="12%" class="tdClass">科目名称</td>
            <td width="10%" class="tdClass">科目代码</td>
            <td width="12%" class="tdClass">描述</td>
            <td width="5%" class="tdClass">状态</td>
            <td width="10%" class="tdClass">常用操作</td>
            <td width="*" class="tdClass">...</td>           
          </tr>
          <logic:notEmpty name="subjectList">
          <% int i = 0; %>
            <logic:iterate id="var" name="subjectList">
            <% i++; %>
              <tr>
                <td class="STYLE12"><input type="checkbox" name="ids" value="${var.subID}" /></td>
                <td class="STYLE12"><%=i %></td>
                <td class="STYLE11">&nbsp;<bean:write name="var" property="subName" /></td>
                <td class="STYLE12"><bean:write name="var" property="subCode" /></td>
                <td class="STYLE11">&nbsp;<bean:write name="var" property="subDesc" /></td>
                <c:if test="${var.subState=='0'}">
                <td class="STYLE12">正常</td>
                <td class="STYLE12">启用&nbsp;<a href="subject.do?method=stopSubject&subjectID=${var.subID}}">停用</a></td>
                </c:if>
                <c:if test="${var.subState=='1'}">
                <td class="STYLE12"><font color="red">停用</font></td>
                <td class="STYLE12"><a href="subject.do?method=startSubjectSon&subjectID=${subID}">启用</a>&nbsp;停用</td>
                </c:if>
                <td class="STYLE12">&nbsp;&nbsp;</td>
              </tr>
            </logic:iterate>
          </logic:notEmpty>
        </table></td>
        <td width="8" background="images/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <%@ include file="../no_page.jsp"%>
</table>
</html:form>
</body>
</html>

